package com.heima.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.admin.dtos.NewsAuthDto;
import com.heima.model.common.dtos.PageResponseResult;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dtos.WmNewsDto;
import com.heima.model.wemedia.dtos.WmNewsPageReqDto;
import com.heima.model.wemedia.pojos.WmNews;

public interface WmNewsService extends IService<WmNews> {

    ResponseResult findAll(WmNewsPageReqDto dto);
    /**
     *  发布文章或保存草稿
     * @param dto
     * @return
     */
   ResponseResult submitNews(WmNewsDto dto) ;

    ResponseResult findOne(Integer id);

    ResponseResult delNews(Integer id);

    ResponseResult downOrUp(WmNewsDto dto);

    PageResponseResult findListVo(NewsAuthDto newsAuthDto);

    ResponseResult findOneById(Integer id);

    ResponseResult authFail(NewsAuthDto newsAuthDto);

    ResponseResult authPass(NewsAuthDto newsAuthDto);
}
